#include"dic.hh"
#include<iostream>
#include<string>


using std::cout;
using std::string;
using std::cin;
using std::endl;

int main()
{
    cout<<"输入文件的名字"<<endl;
    string filename;
    cin>>filename;

    TextQuery qt;
    qt.readFile(filename);

    cout<<"请输入需要查找的单词"<<endl;
    string word;
    cin>>word;
    qt.query(word);
}

